package com.woniuxy.user.service;

import com.woniuxy.entity.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("file")
public interface FileService {

    //上传文件服务
    @PostMapping(value = "file/upload",
            produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},
            consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public ResponseResult<String> upload(MultipartFile file);

}
